import Vue from 'vue'
import App from './App'
import store from './store'

import VueI18n from './common/vue-i18n'
import LangChn from './store/language/Chinese'
import LangEng from './store/language/English'

Vue.use(VueI18n)

Vue.config.productionTip = false

const i18n = new VueI18n({  
	locale: 'eng',  
	messages: {
		'chn': LangChn,
		'eng' : LangEng
	}
})

Vue.prototype.$store = store
Vue.prototype._i18n = i18n
App.mpType = 'app'

const app = new Vue({
	i18n,
    store,
    ...App
})
app.$mount()
